home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 6: Level 6 / 17 Bit - Level 6 (1998)(Epic Marketing)[!].iso / quartz / q0971.dms / q0971.adf / programmer / includes / tom_gadget.h < prev   
Text File  |  1997-04-10  |  1KB  |  63 lines

  1. #define    MAX_GADGET    50    /* Max number of gadget in a Window */
  2.  
  3. #define GD_ok                                  0
  4. #define GD_test                                1
  5. #define GD_cancel                              2
  6. #define GD_info                                3
  7.  
  8. #define GD_first                               4
  9.  
  10. typedef    enum{
  11.     END_LISTE,    /* This is to signal the end of the dark gadget list*/
  12.     BUTTON,        /* A simple button gadget                */
  13.     SLIDER,
  14.     CHECKBOX,
  15.     MX,
  16.     LISTVIEW,
  17.     OWN_GADGET,
  18.     CYCLE,
  19.     STRING,
  20.     INTEGER,
  21.     SCREEN,            /* A button to choose screen resolution */
  22.     DATA_STRING,        /* Data not show, only for saving    */
  23.     IMAGE,            /* It's to show an image structure     */
  24.     FONT,            /* A button to choose a font        */
  25.     INV_CHECKBOX,        /* Like a checkbox, but not show on screen */
  26.     NEXT_LISTE        /* For internal use only        */
  27.  
  28. }type_gadget;
  29.  
  30. #define    HORIZ    1
  31. #define    VERT    2
  32.     
  33. typedef    struct    own_init{
  34.     struct    Gadget    (*own_add)();
  35.     void    (*own_press)();
  36.     void    (*own_end)();
  37. };
  38.  
  39. typedef    struct    tom_gadget{
  40.     char    *GadgetText;
  41.     type_gadget    type_gadg;
  42.     short    int    LeftEdge,TopEdge;
  43.     short    int    Width,Height;
  44.     short    int    value;
  45.     short    int    d1,d2,d3;
  46.     char    *p_data;
  47.     struct    Gadget    *p_gadg;
  48.  
  49. };
  50.  
  51. typedef    struct    contexe{
  52.     struct    tom_gadget    *t_g;
  53.     struct    Window    *Wnd;
  54.     APTR        Visual;
  55.     struct Gadget        *GList;
  56.     int        flg_end;
  57.     int        flg_save;
  58.     char    *p_name;
  59. };
  60.  
  61. int    find_res(USHORT flg_depth,SHORT *p_depth,SHORT *p_tx,SHORT *p_ty,ULONG *p_d_id);
  62.  
  63.